<!--头部导航组件-->
<template>
  <div class="navbar">
    <div class="dht">
      <slot name="left"><span>左边</span></slot>

      <slot name="center">
        <div slot="center" class="zj">
          <span class="xs">小说</span>
          <span class="mh">漫画</span>
        </div>
      </slot>
      
      <slot name="right">
         <img src="1.png" slot="right" alt="">
      </slot>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  data() {
    return {};
  },
  computed: {},
  watch: {},
  methods: {},
  created() {},
  mounted() {},
};
</script>
<style scoped>
.navbar {
  font-size: 0.16rem;
  background-color: #c1392b;
  width: 100%;
  height: 1.19rem;
  position: relative;
  top: 0;
  left: 0;
  overflow: hidden;
}
.dht {
  width: 100%;
  height: 0.55rem;
  /* background-color: yellow; */
  margin-top: 0.55rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.navbar img {
  width: 0.38rem;
}

.zj {
  width: 2.18rem;
  height: 0.5rem;
  border: 2px solid #dcb4ad;
  border-radius: 0.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.2rem;
}
.xs {
  width:calc(2.18rem / 2);
  height: 0.5rem;
  background-color: #fff;
  border-radius: 0.1rem 0 0 0.1rem;
  text-align: center;
  line-height: 0.5rem;
}
.mh {
  width:calc(2.18rem / 2);
  height: 0.5rem;
  border-radius:  0 0.1rem 0.1rem 0 ;
  text-align: center;
  line-height: 0.5rem;
}
</style>